package com.atguigu.gulimall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class UserLoginVo {
    //登录名
    @NotEmpty(message = "请输入用户名")
    private String loginName;
    //密码
    @NotEmpty(message = "请输入密码")
    private String password;
    //验证码
    @NotEmpty(message = "请输入验证码")
    @Length(min = 6,max = 6,message = "验证码只能是6位")
    private String code;
}
